home *** CD-ROM | disk | FTP | other *** search
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Parametry swiata ODE
- ///////////////////////////////////////////////////////////////////////////////////////////////////
-
- !include("ODEPhysics.def")
-
- //-------------------------------------------------------------------------------
-
- WorldParams()
- {
- EnableODE(1)
- EnableRenderOnStart(0) //@@ do testow 1
- EnableAutoUpdate(1)
-
- SetGravity(0, -1000, 0)
-
- SetERP(0.45)
- SetCFM(0.0000001)
-
- EnableFixedUpdateTime(1)
- SetFixedUpdateTime(0.02) // 0.02 = 1/50 0.015625 = 1/64 0.03125 = 1/32 0.0625 = 1/16
- SetMinUpdateTime(0.002) // przy wlaczonym FixedTime nieuzywane
- SetMaxUpdateTime(0.015) // przy wlaczonym FixedTime nieuzywane
-
- EnableStepFast(1) // jesli 0 - tryb StepFast wylaczony - nastepne 4 linijki nie sa brane pod uwage
- SetMinStepFastIterations(4)
- SetMaxStepFastIterations(20)
- SetJointCountThreshold(1)
- SetJointCountDivisor(1)
-
- EnableSkipContactConnected(1)
-
- // wind params
- WindDir(1, 0, 0)
- WindPhaseOppositionDistance(2000)
- DirWindParams(110, 130, 15, 20)
- PerpDirWindParams(40, 40, 100, 141)
- WindWaveParams(60, 60, 1.5, 1.7)
- // DirWindParams(0, 0, 15, 20)
- // PerpDirWindParams(0, 0, 100, 141)
- // WindWaveParams(0, 0, 1.5, 1.7)
- }
- //-------------------------------------------------------------------------------------------------
-
- CacheParams() // extenty obiektow ODE beda powiekszane o tyle cm w kazda strone i z takich powiekszonych beda brane trojkaty (min, max, freq)
- {
- // TerrainCacheParams(0, 0, 8)
- // StaticObjectsCacheParams(0, 0, 8)
- // TreesCacheParams(0, 0, 8)
-
- TerrainCacheParams(0.5, 70, 4)
- StaticObjectsCacheParams(0.5, 70, 4)
- TreesCacheParams(0.5, 70, 4)
- }
-
- //-------------------------------------------------------------------------------------------------
-
-
-